angular.module('faApp').service('StatisticalService', [ 'ajaxService',function (ajaxService) {

  this.orderList = function (cfg) {
    return ajaxService.jsonp(ajaxService.getApiUri("STATISTICAL_ORDER_LIST"),cfg || {});
  };

  this.orderListCsv = function (cfg) {
    return ajaxService.jsonp(ajaxService.getApiUri("STATISTICAL_ORDER_LIST_CSV"),cfg || {});
  };

  this.userList = function (cfg) {
    return ajaxService.jsonp(ajaxService.getApiUri("STATISTICAL_USER_LIST"),cfg || {});
  };

  this.userListCsv = function (cfg) {
    return ajaxService.jsonp(ajaxService.getApiUri("STATISTICAL_USER_LIST_CSV"),cfg || {});
  };
}]);